﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYData.Entity.DomainModels.ApiEntity.Input
{
    /// <summary>
    /// 经费分配添加
    /// </summary>
    public class basicallocationInput_Dto
    {
        
        /// <summary>
        /// <summary>
        ///外键经费入帐单表ID
        /// </summary>
        [Display(Name = "外键经费入帐单表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string billingId { get; set; }

        ///外键项目基础信息表ID
        /// </summary>
        [Display(Name = "外键项目基础信息表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectId { get; set; }

        /// <summary>
        /// 到账直接经费
        /// </summary>
        [Display(Name = "到账直接经费")]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        public string directMoney { get; set; }
        /// <summary>
        ///下拨直接经费
        /// </summary>
        [Display(Name = "下拨直接经费")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string UpdirectMoney { get; set; }
        /// <summary>
        ///到账间接经费
        /// </summary>
        [Display(Name = "到账间接经费")]
        [MaxLength(500)]
        [Column(TypeName = "nvarchar(500)")]
        [Editable(true)]
        public string? indirectMoney { get; set; }
        

        /// <summary>
        ///下拨项目总经费(万)
        /// </summary>
        [Display(Name = "下拨项目总经费(万)")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public decimal allocationExpenditure { get; set; }

        /// <summary>
        ///下拨间接经费
        /// </summary>
        [Display(Name = "下拨间接经费")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        public decimal? UpindirectMoney { get; set; }

        /// <summary>
        ///外键经费下拨流程表ID
        /// </summary>
        [Display(Name = "外键经费下拨流程表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string belowflowId { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name = "isDelete")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? isDelete { get; set; } = 0;
    }
}
